package kisti.lod.classification.db;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

/**
 * Class modelling Rows of the Database Table "uri"
 * @author Sebastian
 */
@DatabaseTable(tableName = "uri")
public class URI {
	@DatabaseField
	String uri;
	@DatabaseField
	int position;
	@DatabaseField(foreign = true, columnName = "keywordId")
	Keyword keyword;
	@DatabaseField(columnName ="triples_collected")
	int triplesCollected;
	@DatabaseField(generatedId = true)
	int uriId;
	
	//no arg constructor for ORMLite
	public URI() {
	}
	
	public URI(String uri, Keyword keyword, int position) {
		setUri(uri);
		setKeyword(keyword);
		setPosition(position);
	}

	public String getUri() {
		return uri;
	}

	public void setUri(String uri) {
		this.uri = uri;
	}

	public Keyword getKeyword() {
		return keyword;
	}

	public void setKeyword(Keyword keyword) {
		this.keyword = keyword;
	}

	public int getUriId() {
		return uriId;
	}

	public int getPosition() {
    	return position;
    }

	public void setPosition(int position) {
    	this.position = position;
    }

	public int getTriplesCollected() {
		return triplesCollected;
	}

	public void setTriplesCollected(int triplesCollected) {
		this.triplesCollected = triplesCollected;
	}
}